package com.lzjn.code.web.entity;

import com.lzjn.code.common.base.BaseEntity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TableConfig extends BaseEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	private String id;
	private String tableName;
	private String entityName;
	private String description;
	private String isCheckbox;
	private String isPage;
	private String isTree;
	private Integer searchColumnNum;
	private Integer formColumnNum;
	private Date createTime;
	
	private String dataSourceId;
	private List<String> tableNames = new ArrayList<String>();
	private List<TableFieldConfig> fieldConfigs = new ArrayList<TableFieldConfig>();
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getTableName() {
		return tableName;
	}
	public void setTableName(String tableName) {
		this.tableName = tableName;
	}
	public String getEntityName() {
		return entityName;
	}
	public void setEntityName(String entityName) {
		this.entityName = entityName;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getIsCheckbox() {
		return isCheckbox;
	}
	public void setIsCheckbox(String isCheckbox) {
		this.isCheckbox = isCheckbox;
	}
	public String getIsPage() {
		return isPage;
	}
	public void setIsPage(String isPage) {
		this.isPage = isPage;
	}
	public String getIsTree() {
		return isTree;
	}
	public void setIsTree(String isTree) {
		this.isTree = isTree;
	}
	public Integer getSearchColumnNum() {
		return searchColumnNum;
	}
	public void setSearchColumnNum(Integer searchColumnNum) {
		this.searchColumnNum = searchColumnNum;
	}
	public Integer getFormColumnNum() {
		return formColumnNum;
	}
	public void setFormColumnNum(Integer formColumnNum) {
		this.formColumnNum = formColumnNum;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public String getDataSourceId() {
		return dataSourceId;
	}
	public void setDataSourceId(String dataSourceId) {
		this.dataSourceId = dataSourceId;
	}
	public List<String> getTableNames() {
		return tableNames;
	}
	public void setTableNames(List<String> tableNames) {
		this.tableNames = tableNames;
	}
	public List<TableFieldConfig> getFieldConfigs() {
		return fieldConfigs;
	}
	public void setFieldConfigs(List<TableFieldConfig> fieldConfigs) {
		this.fieldConfigs = fieldConfigs;
	}
	@Override
	public String toString() {
		return "TableConfig [id=" + id + ", tableName=" + tableName + ", entityName=" + entityName + ", description="
				+ description + ", isCheckbox=" + isCheckbox + ", isPage=" + isPage + ", isTree=" + isTree
				+ ", fieldConfigs=" + fieldConfigs + ", toString()=" + super.toString() + "]";
	}
}
